//场馆信息
import request from '@/utils/request'

// 查询场馆列表
export function listVenue(query) {
  return request({
    url: '/pms/system/venue/list',
    method: 'get',
    params: query
  })
}

// 一键开闭场馆
export function changeVenue(data) {
  return request({
    url: '/pms/system/venue/close/open',
    method: 'post',
    data
  })
}

// 编辑场馆
export function editVenue(data) {
  return request({
    url: '/pms/system/venue/edit',
    method: 'post',
    data
  })
}


export function refreshVenueCache(query) {
  return request({
    url: '/pms/system/venue/refreshVenueCache',
    method: 'get',
    params: query
  })
}

